{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# For if you want to just be working in your cloned git directory, and not installed to a python environment\n",
    "import os\n",
    "import sys\n",
    "module_path = os.path.abspath(os.path.join('..'))\n",
    "if module_path not in sys.path:\n",
    "    sys.path.insert(0, module_path)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import logging\n",
    "\n",
    "__format = '%(asctime)s %(module)-10s::%(funcName)-20s - [%(lineno)-3d]%(message)s'\n",
    "logging.basicConfig(level=logging.DEBUG,\n",
    "                    format=__format,\n",
    "                    datefmt='%Y-%m-%d %H:%M:%S')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import ccd\n",
    "from test.shared import read_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "params = {'QA_BITPACKED': False,\n",
    "              'QA_FILL': 255,\n",
    "              'QA_CLEAR': 0,\n",
    "              'QA_WATER': 1,\n",
    "              'QA_SHADOW': 2,\n",
    "              'QA_SNOW': 3,\n",
    "              'QA_CLOUD': 4}\n",
    "\n",
    "data = read_data('../test/resources/test_3657_3610_observations.csv')\n",
    "dates, blues, greens, reds, nirs, swir1s, swir2s, thermals, qas = data\n",
    "results = ccd.detect(dates, blues, greens, reds, nirs, swir1s, swir2s, thermals, qas, params=params)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'algorithm': 'lcmap-pyccd:2018.03.12',\n",
       " 'change_models': [{'blue': {'coefficients': (0.04611813373097645,\n",
       "     284.43324176756244,\n",
       "     148.33361297977248,\n",
       "     13.613743283672978,\n",
       "     58.90215410153422,\n",
       "     1.8913492393251956,\n",
       "     25.08634422831887),\n",
       "    'intercept': -32785.27578313946,\n",
       "    'magnitude': 285.3788151400695,\n",
       "    'rmse': 109.15086470799753},\n",
       "   'break_day': 727731,\n",
       "   'change_probability': 1.0,\n",
       "   'curve_qa': 8,\n",
       "   'end_day': 727715,\n",
       "   'green': {'coefficients': (0.04830502708409155,\n",
       "     296.5005821179507,\n",
       "     118.66854754123803,\n",
       "     28.300056259385535,\n",
       "     33.46311004772084,\n",
       "     17.639415933327008,\n",
       "     6.49683588729709),\n",
       "    'intercept': -34142.93506659758,\n",
       "    'magnitude': 346.5308234754375,\n",
       "    'rmse': 124.08932566956867},\n",
       "   'nir': {'coefficients': (-0.06442643156672573,\n",
       "     -243.21882999207398,\n",
       "     -248.3089181280274,\n",
       "     121.89409190380161,\n",
       "     128.2325699396088,\n",
       "     -132.99625593826352,\n",
       "     68.19780152484304),\n",
       "    'intercept': 48884.7828950372,\n",
       "    'magnitude': 1030.1014581095624,\n",
       "    'rmse': 293.18129074114563},\n",
       "   'observation_count': 65,\n",
       "   'red': {'coefficients': (0.08462234104996647,\n",
       "     542.8879956121976,\n",
       "     126.99572308853796,\n",
       "     71.85320197528704,\n",
       "     -33.94069251920876,\n",
       "     46.06505383938905,\n",
       "     -32.75118530187267),\n",
       "    'intercept': -60316.502951858616,\n",
       "    'magnitude': 466.49078733377246,\n",
       "    'rmse': 151.32710230803997},\n",
       "   'start_day': 724419,\n",
       "   'swir1': {'coefficients': (0.07866278436294434,\n",
       "     232.77541499357451,\n",
       "     -154.40167432195548,\n",
       "     -110.19637492423497,\n",
       "     -249.8674808121493,\n",
       "     122.89071350663873,\n",
       "     -138.47541225010744),\n",
       "    'intercept': -54674.00105068795,\n",
       "    'magnitude': 1911.9877118456097,\n",
       "    'rmse': 363.0782871749425},\n",
       "   'swir2': {'coefficients': (0.08577474887989744,\n",
       "     239.54847274758848,\n",
       "     38.32302482515981,\n",
       "     -120.67275997787898,\n",
       "     -259.4045946266856,\n",
       "     143.30132902022282,\n",
       "     -122.89557721586864),\n",
       "    'intercept': -60635.33838778086,\n",
       "    'magnitude': 1306.7197264916213,\n",
       "    'rmse': 286.8749501319939},\n",
       "   'thermal': {'coefficients': (0.22300074252267127,\n",
       "     -1338.4909238273553,\n",
       "     -339.97662140777095,\n",
       "     361.8547617776643,\n",
       "     -262.4826940513475,\n",
       "     185.33437230556356,\n",
       "     -77.13221213940302),\n",
       "    'intercept': -160403.11652078622,\n",
       "    'magnitude': 1203.583717147354,\n",
       "    'rmse': 406.77430812222497}},\n",
       "  {'blue': {'coefficients': (0.019118231134643896,\n",
       "     145.9770628389499,\n",
       "     171.47286506906383,\n",
       "     -15.431913562254266,\n",
       "     101.58159290248808,\n",
       "     12.874898705512754,\n",
       "     -1.5497810967282943),\n",
       "    'intercept': -13526.159340794584,\n",
       "    'magnitude': 400.28422723363565,\n",
       "    'rmse': 102.97150889813369},\n",
       "   'break_day': 731419,\n",
       "   'change_probability': 1.0,\n",
       "   'curve_qa': 8,\n",
       "   'end_day': 731411,\n",
       "   'green': {'coefficients': (0.00023571972719498512,\n",
       "     74.49338296807949,\n",
       "     163.03752607937668,\n",
       "     -30.164900684131144,\n",
       "     74.26892788016649,\n",
       "     5.0618878754192345,\n",
       "     -9.118578826084011),\n",
       "    'intercept': 255.74454880934505,\n",
       "    'magnitude': 554.3319318875258,\n",
       "    'rmse': 98.42322985107496},\n",
       "   'nir': {'coefficients': (-0.049873946037860654,\n",
       "     0.0,\n",
       "     134.91884081708815,\n",
       "     27.09612155010133,\n",
       "     79.3080661900623,\n",
       "     28.286218523240763,\n",
       "     -36.78374191371169),\n",
       "    'intercept': 36832.42202567102,\n",
       "    'magnitude': 1976.232373282597,\n",
       "    'rmse': 163.8797815196773},\n",
       "   'observation_count': 76,\n",
       "   'red': {'coefficients': (-0.01812415092006969,\n",
       "     151.0917330052639,\n",
       "     221.21875547737298,\n",
       "     -40.009800827630464,\n",
       "     94.39684180040521,\n",
       "     3.923150486246046,\n",
       "     -10.756139516394557),\n",
       "    'intercept': 13664.521345219508,\n",
       "    'magnitude': 779.4094797297539,\n",
       "    'rmse': 88.72612933825528},\n",
       "   'start_day': 728019,\n",
       "   'swir1': {'coefficients': (0.003118993394645434,\n",
       "     -84.91368000213582,\n",
       "     27.44453382184424,\n",
       "     -53.404204109749756,\n",
       "     -93.70156687087373,\n",
       "     53.48455541144598,\n",
       "     -36.817920053595195),\n",
       "    'intercept': -2096.3884999557204,\n",
       "    'magnitude': 2158.3477156771987,\n",
       "    'rmse': 94.80270353881244},\n",
       "   'swir2': {'coefficients': (0.0033125603044071314,\n",
       "     -67.08032256487081,\n",
       "     51.55527846337562,\n",
       "     -38.76382825129303,\n",
       "     -69.9237851871376,\n",
       "     50.69512712594576,\n",
       "     -28.023465891651725),\n",
       "    'intercept': -2275.678688184199,\n",
       "    'magnitude': 1556.2946732323132,\n",
       "    'rmse': 76.30297613802901},\n",
       "   'thermal': {'coefficients': (0.028490068254819537,\n",
       "     -1057.7695133961902,\n",
       "     -181.9806063278027,\n",
       "     0.0,\n",
       "     119.97720583164559,\n",
       "     -55.122034685005765,\n",
       "     120.02326816852957),\n",
       "    'intercept': -19812.87806837732,\n",
       "    'magnitude': 597.2910541031779,\n",
       "    'rmse': 231.640206880215}},\n",
       "  {'blue': {'coefficients': (-0.06554197677698986,\n",
       "     358.6036670545938,\n",
       "     404.287599666018,\n",
       "     -69.9813672631287,\n",
       "     -10.052950507191225,\n",
       "     -103.43500823585407,\n",
       "     3.581175482462987),\n",
       "    'intercept': 48987.8355113621,\n",
       "    'magnitude': 261.2229780323687,\n",
       "    'rmse': 108.27924964865709},\n",
       "   'break_day': 733883,\n",
       "   'change_probability': 1.0,\n",
       "   'curve_qa': 8,\n",
       "   'end_day': 733859,\n",
       "   'green': {'coefficients': (-0.09318775742836258,\n",
       "     319.1596414118276,\n",
       "     384.5036179247304,\n",
       "     -99.86420717835864,\n",
       "     -67.79999837845429,\n",
       "     -88.70422607989256,\n",
       "     19.146783595180597),\n",
       "    'intercept': 69447.08070241715,\n",
       "    'magnitude': 303.15642573536024,\n",
       "    'rmse': 119.46002975529359},\n",
       "   'nir': {'coefficients': (-0.4291920378130277,\n",
       "     -145.95238812954148,\n",
       "     85.25725187716174,\n",
       "     11.711309734534707,\n",
       "     125.25081211703632,\n",
       "     -136.55905246907585,\n",
       "     -5.848645685732746),\n",
       "    'intercept': 317034.4953729159,\n",
       "    'magnitude': 664.354612696945,\n",
       "    'rmse': 213.65671812568075},\n",
       "   'observation_count': 46,\n",
       "   'red': {'coefficients': (-0.18535491592252615,\n",
       "     437.17076038088226,\n",
       "     437.8810963465724,\n",
       "     -118.88652192106106,\n",
       "     -178.76397150126547,\n",
       "     -59.91042965417288,\n",
       "     19.269523705902287),\n",
       "    'intercept': 137208.45910173818,\n",
       "    'magnitude': 385.7368248433195,\n",
       "    'rmse': 139.8267344409402},\n",
       "   'start_day': 732187,\n",
       "   'swir1': {'coefficients': (-0.3019664486960263,\n",
       "     263.58493919480105,\n",
       "     477.17234944527445,\n",
       "     -238.27289817438853,\n",
       "     -477.59733794308556,\n",
       "     14.06848675905922,\n",
       "     140.17348641434333),\n",
       "    'intercept': 223886.84928889974,\n",
       "    'magnitude': 1358.9295049543725,\n",
       "    'rmse': 333.89529714244156},\n",
       "   'swir2': {'coefficients': (-0.20557064658133997,\n",
       "     196.2031163945631,\n",
       "     369.3991452149122,\n",
       "     -261.5749961152918,\n",
       "     -505.21149670251856,\n",
       "     1.4573656874414165,\n",
       "     47.69091116118103),\n",
       "    'intercept': 152414.5061657034,\n",
       "    'magnitude': 994.0361173288111,\n",
       "    'rmse': 318.1901413347524},\n",
       "   'thermal': {'coefficients': (-0.2880076052764464,\n",
       "     -1664.7777513824124,\n",
       "     -301.64926063691235,\n",
       "     -59.98540893362974,\n",
       "     -161.75764283004165,\n",
       "     102.39031779794176,\n",
       "     7.504108895214555),\n",
       "    'intercept': 212104.99138335788,\n",
       "    'magnitude': 145.83636924953316,\n",
       "    'rmse': 386.706871545373}},\n",
       "  {'blue': {'coefficients': (-0.16547353255401542,\n",
       "     92.5776889649161,\n",
       "     -0.0,\n",
       "     0.0,\n",
       "     -33.801056956719734,\n",
       "     -35.85945438579472,\n",
       "     2.8067582727968965),\n",
       "    'intercept': 121850.85495380402,\n",
       "    'magnitude': 64.92504330891097,\n",
       "    'rmse': 45.59197653084766},\n",
       "   'break_day': 735011,\n",
       "   'change_probability': 1.0,\n",
       "   'curve_qa': 8,\n",
       "   'end_day': 734731,\n",
       "   'green': {'coefficients': (-0.38931755881191643,\n",
       "     170.69975272482648,\n",
       "     -18.68736583194331,\n",
       "     83.12569252735312,\n",
       "     -0.0,\n",
       "     -8.480897252042125,\n",
       "     28.702013363694828),\n",
       "    'intercept': 286370.15767902764,\n",
       "    'magnitude': 154.41785559459822,\n",
       "    'rmse': 86.02493043029318},\n",
       "   'nir': {'coefficients': (-2.70866337151725,\n",
       "     0.0,\n",
       "     -327.0647865405419,\n",
       "     72.98317838828638,\n",
       "     89.81116596078105,\n",
       "     24.874804877616405,\n",
       "     -91.00319775026415),\n",
       "    'intercept': 1989971.307931135,\n",
       "    'magnitude': 1449.5275026765885,\n",
       "    'rmse': 287.764258832229},\n",
       "   'observation_count': 35,\n",
       "   'red': {'coefficients': (-0.48930267576951053,\n",
       "     129.37025416813194,\n",
       "     -57.567466313291284,\n",
       "     0.0,\n",
       "     -102.29582771853475,\n",
       "     -36.15938932072732,\n",
       "     17.735751617309113),\n",
       "    'intercept': 359742.1090917515,\n",
       "    'magnitude': 235.86430644601933,\n",
       "    'rmse': 115.03641655126606},\n",
       "   'start_day': 733939,\n",
       "   'swir1': {'coefficients': (-1.959196195793913,\n",
       "     239.63835806776405,\n",
       "     -85.86495126120583,\n",
       "     -62.75217085928084,\n",
       "     -0.0,\n",
       "     -65.17770238575595,\n",
       "     -6.128044892086824),\n",
       "    'intercept': 1439241.716454551,\n",
       "    'magnitude': 1273.3577348409453,\n",
       "    'rmse': 169.60493130062156},\n",
       "   'swir2': {'coefficients': (-1.017256389568186,\n",
       "     200.93103899668944,\n",
       "     -11.6829874120418,\n",
       "     -0.0,\n",
       "     -2.628403525325887,\n",
       "     -48.87916633450982,\n",
       "     30.327759626559015),\n",
       "    'intercept': 747364.6756594898,\n",
       "    'magnitude': 660.2628908804618,\n",
       "    'rmse': 120.85593079252116},\n",
       "   'thermal': {'coefficients': (-0.6965418465148505,\n",
       "     -1555.7684760087714,\n",
       "     -454.925773407087,\n",
       "     -164.4977291310571,\n",
       "     0.0,\n",
       "     -48.12325695271999,\n",
       "     24.189503552832733),\n",
       "    'intercept': 512071.68787283154,\n",
       "    'magnitude': 593.8690518476069,\n",
       "    'rmse': 229.7046613954397}},\n",
       "  {'blue': {'coefficients': (0.013309239931112176,\n",
       "     208.4992307122923,\n",
       "     127.98488349230337,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -9374.293937157423,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 159.83304245243963},\n",
       "   'break_day': 735515,\n",
       "   'change_probability': 0.0,\n",
       "   'curve_qa': 24,\n",
       "   'end_day': 735515,\n",
       "   'green': {'coefficients': (0.1471264049694959,\n",
       "     238.65109061636272,\n",
       "     200.65244716840164,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -107653.46246560094,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 238.35392942729698},\n",
       "   'nir': {'coefficients': (0.4410389631136011,\n",
       "     -134.5007362661872,\n",
       "     -155.42612210792862,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -323832.35913922754,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 255.80419165651813},\n",
       "   'observation_count': 23,\n",
       "   'red': {'coefficients': (0.14905354088434802,\n",
       "     273.65050055590183,\n",
       "     209.53007479625356,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -109083.96508958182,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 215.1473451800292},\n",
       "   'start_day': 735011,\n",
       "   'swir1': {'coefficients': (0.1696000322196124,\n",
       "     4.990989401486709,\n",
       "     8.582448721102102,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -124458.1416108616,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 88.84233081207732},\n",
       "   'swir2': {'coefficients': (0.08403177417250733,\n",
       "     16.007884608446158,\n",
       "     16.991722668251544,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -61612.78585861216,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 57.1923577172125},\n",
       "   'thermal': {'coefficients': (0.20995700984704566,\n",
       "     -1555.7636271215479,\n",
       "     -441.3924816461445,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0,\n",
       "     0.0),\n",
       "    'intercept': -153739.69086753431,\n",
       "    'magnitude': 0.0,\n",
       "    'rmse': 209.52353302591223}}],\n",
       " 'cloud_prob': 0.26185101580135439,\n",
       " 'processing_mask': [0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0,\n",
       "  0,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  1,\n",
       "  0,\n",
       "  0],\n",
       " 'snow_prob': 0.038708428760362568,\n",
       " 'water_prob': 0.23153585450152681}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results"
   ]
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [conda env:lcmap-pyccd]",
   "language": "python",
   "name": "conda-env-lcmap-pyccd-py"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.4.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
